<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    //1.声明字符串 ``
    let str = `我是字符串`

    //2.内容中可以出现换行符
    let str1 = `<ul>
                  <li>马力</li>
                  <li>shenteng</li>
                  <li>tom</li>
                </ul>`
    //3.拼接
    let name = `tom`
    let out = `${name}是班长`
    console.log(out)
  </script>
</body>

</html>